package com.ly.activiti.controller;

import com.ly.activiti.service.IFormHistoryDataService;
import com.ly.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class HistoryFormDataController {

    @Resource
    private IFormHistoryDataService iFormHistoryDataService;

    @GetMapping (value = "historyFromData/ByInstanceId/{instanceId}")
    public AjaxResult historyFromData (@PathVariable ("instanceId") String instanceId) {
        return AjaxResult.success ( iFormHistoryDataService.historyDataShow ( instanceId ) );

    }
}
